package com.project.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 统计类
 */
@Data
@ApiModel(value = "统计类")
public class CountBean {
    /*
    （名称（name），总额(value)）
     */
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "总额")
    private Integer totalPrice;

    public CountBean() {
    }

    public CountBean(String name, Integer totalPrice) {
        this.name = name;
        this.totalPrice = totalPrice;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Integer totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "\nCountBean{" +
                ", name='" + name + '\'' +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
